<?php $model = $data?>
<li class="shop-item">
	<h2><?php echo CHtml::link($model->name, array('item/view', 'id' => $model->id)) ?></h2>
	<?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl . "/uploads/thumbnails/$model->id.jpg"), array('item/view', 'id' => $model->id)) ?>
	<p><?php echo CHtml::encode($model->description); ?></p>

	<b><?php echo CHtml::encode($model->getAttributeLabel('quantity')); ?>:</b>
	<?php echo CHtml::encode($model->quantity); ?>,
	<b><?php echo CHtml::encode($model->getAttributeLabel('price')); ?>:</b>
	$<?php echo CHtml::encode($model->price); ?>
	<br />
	<span><?php echo CHtml::link("View User's Shop", array('user/view', 'id' => $model->user_id)) ?></span>
</li>